//------------------------------------------------------------------------------
// <copyright file="WindowAbout.xaml.cs" company="Damian Antonowicz">
//       copyright © 2010 Damian Antonowicz
// </copyright>
// <author>Damian Antonowicz</author>
// <email>poczta@damianantonowicz.pl</email>
//------------------------------------------------------------------------------

using System.Diagnostics;
using System.Windows;
using System.Windows.Input;
using DAnton.Utilities.Extensions;

namespace DotBeer.UI.WPFClient
{
	/// <summary>
	/// Interaction logic for WindowAbout.xaml
	/// </summary>
	public partial class WindowAbout : Window
	{
		public WindowAbout()
		{
			this.InitializeComponent();
            this.SetOwner();
		}

        private void textBlockSiteProgram_MouseDown(object sender, MouseButtonEventArgs e)
        {
            Process.Start("http://dotbeer.codeplex.com");
        }

        private void textBlockSiteAuthor_MouseDown(object sender, MouseButtonEventArgs e)
        {
            Process.Start("http://damianantonowicz.pl");
        }

        private void textBlockEmailAuthor_MouseDown(object sender, MouseButtonEventArgs e)
        {
            Process.Start("mailto:poczta@damianantonowicz.pl");
        }

        private void textBlockEmailGraphic_MouseDown(object sender, MouseButtonEventArgs e)
        {
            Process.Start("mailto:matt.qq@gmail.com");
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

        private void Image_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            Process.Start("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=10131150");
        }
	}
}
